﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Presenter.Support;

namespace MS.InformationManagement.Presenter.ResponseVoBo
{
    public class ResponseVoBoPresenter : BasePresenter<IResponseVoBoView>
    {
        #region Constructor

        public ResponseVoBoPresenter(IResponseVoBoView view) : base(view) { }

        #endregion

        #region Public Methods

        public void HandleLoad()
        {
            View.ArchiveEntity = new BLL.RequestBoVo.RequestVoBo().GetArchivo(View.SelectedId);
            View.Show();
        }

        public void SaveResponse()
        {
            new BLL.RequestBoVo.RequestVoBo().Approval(View.SelectedId, View.Observacion, View.Approval);
            //View.Success();
        }

        #endregion
    }
}
